Unit 2 Exercise 6
Exercise 6: Create a UNIX Job
Objective
To define a UNIX job and run it successfully.
Summary
Create a UNIX
job in MY FIRST SCHEDULE called UNIX Job 1. This job will run as 0/0
and execute the UNIX version of genericp
, called genericpgm
for 20 seconds
Instructions
Defining the job
- In Studio, select My First Schedule.
- Click the View button.
- In the side menu, select Add Job.
- Validate that My First Schedule is in the Schedule field.
- In the Name textbox, enter
UNIX Job 1
. - In the Job Type drop-down list, select UNIX.
- In the Machine Selection > Machines or Machine Group drop-down list, select the SUSEVM machine for the Job to run on.
- In the General > User ID drop-down list, select
0/0
- In the Run > Start Image field, type:
/usr/local/lsam/bin/genericpgm
- In the Run > Parameters section, enter:
–t20 –e0
- Click the Save button
- Click the Lock icon in the upper right-hand corner.
- Select the Frequency tab.
- Select Example-Mon-Sun-O in the Inactive list.
- Move the Frequency to the Active List using the < button.
- Expand the Documentation tab and enter in some documentation
- Example: This is a UNIX training job.
- Click the Save button.
- Close Library.
- Close Studio.
Add the Job to the Daily and Execute It
- In Operations, click on Processes in the top right corner.
- In the Date section, select today's date.
- In the Schedule section, right-click on My First Schedule.
- In the Schedule Selection window, click the + sign.
- In the Add Job(s) for... pop-up window, select the UNIX Job 1 and click Next.
- On the next screen, click the Release radial button then click Next.
- On the next screen, click Submit.
- Click Close.
- In the Job section, you should see the job and it should run successfully.
- Close Operations.
Enterprise Manager
Details
Scenario: You will create 1 UNIX Job in OpCon to run the same program in the previous exercise.
- Under the Administration topic, Double-Click on Job Master.
- In the Schedule drop-down list, select My First Schedule.
- Click the Add button on the Job Master toolbar.
- In the Name textbox, enter
UNIX Job 1
. - In the Job Type drop-down list, select UNIX.
- In the Primary Machine drop-down list, select the SUSEVM machine for the Job to run on.
- In the User ID drop-down list, select
0/0
- In the Start Image field, type:
/usr/local/lsam/bin/genericpgm
- In the Parameters section, enter:
–t20 –e0
- Click the Save button on the Job Master toolbar.
- Inside the Job Master screen under Job Properties, click on the Frequency tab.
- Within the Frequency list frame, click the Add button.
- Click inside the option button to Use existing Frequency.
- In the Frequency drop-down list, select
Example-Mon-Sun-O
. - Click Next
- Click the Finish button.
- Click on the Documentation tab and enter This is a UNIX training Job.
- Click the Save button on the Job Master toolbar.
- Close the Job Master.